Optimal. Leaf size=57 \[ -\frac{(A-B) \sin ^2(c+d x)}{2 a d}+\frac{A \sin (c+d x)}{a d}-\frac{B \sin ^3(c+d x)}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0954406, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.065, Rules used = {2836, 43} \[ -\frac{(A-B) \sin ^2(c+d x)}{2 a d}+\frac{A \sin (c+d x)}{a d}-\frac{B \sin ^3(c+d x)}{3 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2836
Rule 43
Rubi steps
\begin{align*} \int \frac{\cos ^3(c+d x) (A+B \sin (c+d x))}{a+a \sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int (a-x) \left (A+\frac{B x}{a}\right ) \, dx,x,a \sin (c+d x)\right )}{a^3 d}\\ &=\frac{\operatorname{Subst}\left (\int \left (a A-(A-B) x-\frac{B x^2}{a}\right ) \, dx,x,a \sin (c+d x)\right )}{a^3 d}\\ &=\frac{A \sin (c+d x)}{a d}-\frac{(A-B) \sin ^2(c+d x)}{2 a d}-\frac{B \sin ^3(c+d x)}{3 a d}\\ \end{align*}
Mathematica [A] time = 0.0941487, size = 44, normalized size = 0.77 \[ \frac{\sin (c+d x) \left (-3 (A-B) \sin (c+d x)+6 A-2 B \sin ^2(c+d x)\right )}{6 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.085, size = 43, normalized size = 0.8 \begin{align*}{\frac{1}{da} \left ( -{\frac{B \left ( \sin \left ( dx+c \right ) \right ) ^{3}}{3}}+{\frac{ \left ( -A+B \right ) \left ( \sin \left ( dx+c \right ) \right ) ^{2}}{2}}+A\sin \left ( dx+c \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.04723, size = 59, normalized size = 1.04 \begin{align*} -\frac{2 \, B \sin \left (d x + c\right )^{3} + 3 \,{\left (A - B\right )} \sin \left (d x + c\right )^{2} - 6 \, A \sin \left (d x + c\right )}{6 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.72857, size = 113, normalized size = 1.98 \begin{align*} \frac{3 \,{\left (A - B\right )} \cos \left (d x + c\right )^{2} + 2 \,{\left (B \cos \left (d x + c\right )^{2} + 3 \, A - B\right )} \sin \left (d x + c\right )}{6 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 13.6641, size = 588, normalized size = 10.32 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30967, size = 69, normalized size = 1.21 \begin{align*} -\frac{2 \, B \sin \left (d x + c\right )^{3} + 3 \, A \sin \left (d x + c\right )^{2} - 3 \, B \sin \left (d x + c\right )^{2} - 6 \, A \sin \left (d x + c\right )}{6 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]